#[macro_use]
extern crate rocket;
extern crate mmd3;

use mmd3::routers::{system, front};
use rocket_contrib::templates::Template;

fn main() {
    rocket::ignite()
        // 每个mount方法相当于一个路由组
        .mount("/", routes!(
            front::index::index
        ))  
        .mount("/system", routes!(
            system::category::category_list,
            system::dashboard,
        ))
        .attach(Template::fairing())
        .launch();
}